package 类与对象.多态;

public class Animal {
     private String name;

     public String getName() {
          return name;
     }

     public void setName(String name) {
          this.name = name;
     }

     public Animal(String name ){
          this.name = name;
     }
     public void run(){
          System.out.println("动物类running\t" + name);
     }
}
